package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 创建启动类
 * @author zsk
 * @create 2022-02-27-21:33
 */
@SpringBootApplication
@MapperScan("com.itheima.reggie.mapper")//指定mybatis类所在的包
@EnableTransactionManagement//开启对事物的管理
@Slf4j
public class WebManageApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebManageApplication.class,args);
        log.info("项目启动成功");
    }

}
